﻿using System;
using QingShan.Data;
using FreeSql.DataAnnotations;

namespace QingShan.DataLayer.Entities
{
    /// <summary>
	/// 权限
    /// </summary>
	[Table(Name ="permission")]
    public class PermissionEntity : QingShan.DatabaseAccessor.EntityBase
    {

            /// <summary>
		    /// 菜单编码
            /// </summary>
            public System.String Code { get; set; }
            
            /// <summary>
		    /// 组件
            /// </summary>
            public System.String Component { get; set; }
            
            /// <summary>
		    /// 图标
            /// </summary>
            public System.String Icon { get; set; }
            
            /// <summary>
		    /// 模块名称
            /// </summary>
            public System.String Name { get; set; }
            
            /// <summary>
		    /// 父级id
            /// </summary>
            public System.String ParentId { get; set; }
            
            /// <summary>
		    /// 路径
            /// </summary>
            public System.String Path { get; set; }
            
            /// <summary>
		    /// 自动生成 权限代码 格式:system.menu.add
            /// </summary>
            public System.String PermissionCode { get; set; }
            
            /// <summary>
		    /// 权限类型
            /// </summary>
            public System.Int32 PermissionType { get; set; }
            
            /// <summary>
		    /// 备注信息
            /// </summary>
            public System.String Remark { get; set; }
            
            /// <summary>
		    /// 排序值
            /// </summary>
            public System.Int32 Sort { get; set; }
            
    }
}
